package xyz.bali16.module.advise.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("添加留言参数")
public class AdviseAddParam {
    @ApiModelProperty(name = "nickname", value = "用户昵称", required = true)
    @NotNull(message = "用户昵称不能为空")
    private String nickname;
    @ApiModelProperty(name = "parentId", value = "目标id", required = true)
    @NotNull(message = "父级id不可为空，如果为0则是父级")
    private String parentId;
    @ApiModelProperty(name = "content", value = "留言内容", required = true)
    @NotNull(message = "留言内容类型不可为空")
    private String content;
    @ApiModelProperty(name = "toName", value = "要对留言回复的那条留言的发表人昵称", required = true)
    @NotNull(message = "要对留言回复的那条留言的发表人昵称不可为空")
    private String toName;
    @ApiModelProperty(name = "toId", value = "要对留言回复的那条留言的发表人Id", required = true)
    @NotNull(message = "要对留言回复的那条留言的发表人Id不可为空")
    private String toId;
}
